package com.youkeyi.ddy.cloud.common.api.basic.hr.employee.family;

import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.family.dto.HrEmployeeFamilyListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.family.param.HrEmployeeFamilyCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.family.param.HrEmployeeFamilyDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.family.param.HrEmployeeFamilyQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.family.param.HrEmployeeFamilyUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * HrEmployeeFamilyCloudServiceFallback
 *
 * @author  liuxiawang
 * @Date 2024/2/19 2:32 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/hr/employee/family/fallback")
public class HrEmployeeFamilyCloudServiceFallback implements HrEmployeeFamilyCloudService {

    @Override
    public HrEmployeeFamilyListCloudDto query(HrEmployeeFamilyQueryCloudParam param) {
        return new HrEmployeeFamilyListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(HrEmployeeFamilyCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(HrEmployeeFamilyUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(HrEmployeeFamilyDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
